1. /* sibscvbn.cpp by K.Tsuru */
  2. // function ID 3557 BRADIX
  3. /***************************************************************
  4. SN library
  5. SInteger class
  6. DRADIX ---> BRADIX radix conversion
  7. A radix conversion by binary splitting method ver. 2.17
  8. ***************************************************************/
  9. #ifndef SN_H
  10. #include "sn.h"
  11. #endif
  12. static const fType* pf;
  13. static const SInteger R(DRADIX);
  14. class SIPolynomial : public BinarySplittingPoly<SInteger> {
  15. public:
  16. SIPolynomial(long L) : BinarySplittingPoly<SInteger>(L){
  17. putTogether();
  18. }
  19. void setAB(long k, SInteger& a, SInteger& b) {
  20. a.SetShort(pf[k]); b = R;
  21. }
  22. };
  23. SInteger BSConvToBin(const SLong& x) {
  24. pf = x.ReadFigures();
  25. SIPolynomial sip(x.Head() + 1);
  26. return sip.getValue();
  27. }

sibscvbn.cpp : last modifiled at 2017/03/13 14:31:59(790 bytes)
created at 2016/04/25 14:53:17
The creation time of this html file is 2017/10/25 11:09:44 (Wed Oct 25 11:09:44 2017).